from PyQt5.Qt import *
import sys

class btn1(QObject):
    def timerEvent(self,QTimerEvent):
          print(QTimerEvent,2)

class lable(QLabel):
    def __init__(self):
        super().__init__()
        self.num=10;
        self.setText(str(self.num)   )
        self.move(200,200)
        self.setStyleSheet('''
         background-color:red;
         font-size:24px;
        ''')
    def timerEvent(self,QTimerEvent):
          self.num-=1
          print(self.num)
          self.setText(str(self.num) )
          if self.num == 0:
              self.killTimer(1)
    def addWin(self,window):
        self.setParent(window)

if __name__ == '__main__':
    app = QApplication(sys.argv)
    w = QWidget()
    v_layout = QVBoxLayout()
    lb = lable()
    v_layout.addWidget(lb)
    timer = lb.startTimer(1000)
    print(timer)
    w.setLayout(v_layout)

    w.show()
    sys.exit(app.exec_())